<!DOCTYPE html>
<title>Verify that a pending event prevents GC</title>
<script src="../resources/testharness.js"></script>
<script src="../resources/testharnessreport.js"></script>
<script>
async_test(function(t)
{
    var a = document.createElement("audio");
    a.volume = 0; // queues a task to fire volumechange

    a.onvolumechange = t.step_func_done();
    a = null;
    gc();
});
</script>
